package com.goodomen.garbage.service.api;

import com.goodomen.garbage.feign.client.GarbageWebClientFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 前台服务端服务层（前后台服务层不混用）
 *
 * @author : Zhao Da
 * @since : 2019/8/2 13:51
 */
@Service
public class DemoScoreService {

    private final GarbageWebClientFeign garbageWebClientFeign;

    @Autowired
    public DemoScoreService(GarbageWebClientFeign garbageWebClientFeign) {
        this.garbageWebClientFeign = garbageWebClientFeign;
    }

    public  String sayHi(String name){
        // 积分Service 调用 web项目
        return garbageWebClientFeign.sayHiFromClientEureka();
    }
}
